package ${package}pojo;

import io.swagger.annotations.ApiModelProperty;
import cn.afterturn.easypoi.excel.annotation.Excel;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;


/**
* @desc：表名为： ${table_name}  表注释为： <#if table_remark !=""> ${table_remark} </#if>
* @author Auto generate
* @date ${gen_time}
*/
<#--@Table(tableName = "${table_name_small}"<#if table_remark !="">,expFileName="${table_remark}"<#else>,expFileName="导出数据文件"</#if> <#if table_order_by?exists>,orderBy="${table_order_by}"</#if><#if table_order?exists>,order="${table_order}"</#if>)-->
public class ${pojo_name}Excel implements Serializable{

private static final long serialVersionUID = 1L;

<#if COLUMNS?exists>
    <#list COLUMNS as model>
        <#if model.javaNameExcel ?? >
        /**
        * ${model.columnName}  ${model.columnType}
        * <#if model.remarks !="">${model.remarks}<#else>${model.javaName}</#if>
        */
    <#--    <#if model.javaType=="Date">@JSONField(format="yyyy-MM-dd")-->
    <#--    <#elseif model.javaType=="Timestamp">@JSONField(format="yyyy-MM-dd hh:mm:ss")</#if>-->
    <#--    @TableColumn(dbColumn = "${model.columnName}",dbColumnType = "${model.columnType}"<#if model.remarks != "">,excelHeader = "${model.remarks}"</#if><#if model.isPK == "true">,isPK="true"</#if>)-->
        @Excel(name = "<#if model.remarks !="">${model.remarks ?trim ?replace("\n","")?replace("","")}<#else>${model.javaName}</#if>")
        private ${model.javaTypeExcel} ${model.javaNameExcel};
        </#if>
    </#list>
</#if>



<#if COLUMNS?exists>
    <#list COLUMNS as model>
        <#if model.javaNameExcel ?? >
        public ${model.javaTypeExcel} ${model.getterName}() {
        return ${model.javaNameExcel};
        }

        public void ${model.setterName}(${model.javaTypeExcel} ${model.javaNameExcel}) {
        <#if model.javaTypeExcel == "String">
            this.${model.javaNameExcel} = ${model.javaNameExcel} == null ? null : ${model.javaNameExcel}.trim();
        <#else>
            this.${model.javaNameExcel} = ${model.javaNameExcel};
        </#if>
        }
        </#if>
    </#list>
</#if>


}